#pragma once
#ifndef STUDENTMODEL_H
#define STUDENTMODEL_H

#include <QStandardItemModel>
#include <QVector>
#include <QDebug>
#include <QColor>
#include <QBrush>
#include <QFont>

class TaskModel : public QStandardItemModel
{
	Q_OBJECT
public:
	TaskModel(QObject *parent = nullptr);

	int iTaskNum;

	void AddTask(QString sTaskNum, QString sCategroy, QString sFunction, QString sClientPort, QString sWorkPort, QString sPri, QString sPro);
	void RemoveTask(int iTaskPos);

signals:

	void ModelDataChange();

public slots:
	void TaskInfoChange(QVariantList ArgList, quint16 iPortServer);

private:
	QVector<QList<QVariant>> TaskVec;
};

#endif // STUDENTMODEL_H
